package com.spring.learn;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * Created by bgt on 2017/4/23.
 */
@Component
public class UserBean2 {
    private int id,age;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
